package com.base.cn.platform.os.entity.order.order;

import com.base.cn.platform.os.common.mybatis.BaseEntity;
import com.base.cn.platform.os.entity.order.shop.ShopData;
import com.base.cn.platform.os.entity.user.user.CusUser;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单流水记录实体
 *
 * @author s.li
 * @create 2018-05-07-16:53
 */
@Data
public class OrderDetails extends BaseEntity {
    /**订单ID*/
    private BigDecimal orderId;
    /**订单号*/
    private String orderNo;
    /**支付类型*/
    private String payType;
    /**商品ID*/
    private BigDecimal shopId;
    /**商品名*/
    private String shopName;
    /**用户ID*/
    private BigDecimal userId;
    /**商品类型*/
    private String shopType;
    /**购买量*/
    private Integer buyNum;
    /**支付时间*/
    private Date payTime;
    /**流水状态*/
    private String detailStatus;
    /**商品金额*/
    private Double price;
    /**会员价格*/
    private Double memberPrice;
    /**优惠券减免金额*/
    private Double yhPrice;
    /**活动优惠金额*/
    private Double activityPrice;
    /**最终支付的实际价格*/
    private Double realPrice;
    /**课程类型*/
    private String courseType;
    /**课程过期类型，1天数，2时间段*/
    private Integer validType;
    /**课程有效天数*/
    private Integer validDay;
    /**课程过期时间点*/
    private Date validTime;
    /**推广员KEY*/
    private String shareKey;

    //=================
    //流水归属用户
    private CusUser user;
    //流水归属订单
    private Order order;
    /**商品数据对象*/
    private ShopData shop;
    /**图书订单扩展数据*/
    private OrderBook orderBook;
}
